﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Telerik.Web.Mvc.UI;

namespace System.Web.Mvc
{
    public class CustomGridActionResultFactory : IGridActionResultFactory
    {
        public ActionResult Create(object model)
        {
            //return a custom JSON result which will use the Json.Net library
            return new CustomJsonResult
            {
                Data = model
            };
        }
    }
}
